package com.telit.firecommand.dao;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.telit.firecommand.entity.FireGrowExtend;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;


public interface FireGrowExtendDao extends BaseMapper<FireGrowExtend> {
    int insert(FireGrowExtend record);

    int insertSelective(FireGrowExtend record);


    @Select("select count(1) from fire_transfer_report where fire_id=#{fireId} and transfer_user_id=#{userId}")
    Integer selectIsHandlerByfireIdAndUserId(@Param("fireId") String fireId, @Param("userId")Long userId);

    FireGrowExtend selectByFireId(@Param("fireId") String fireId);
}